package fr.n7.khome.view;

import javax.swing.JTable;
import javax.swing.table.TableCellEditor;
import javax.swing.table.TableCellRenderer;
import javax.swing.table.TableModel;

public class KHomeTable extends JTable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -4762349711930564566L;

	public KHomeTable() {
		super();
	}
	
	public KHomeTable(TableModel tm) {
		super(tm);
	}
	
	public TableCellRenderer getCellRenderer(int row, int column) {
		return getDefaultRenderer(getValueAt(row, column).getClass());
	}

	public TableCellEditor getCellEditor(int row, int column){
		return getDefaultEditor(getValueAt(row, column).getClass());
	}
}
